package com.gitee.feizns.webtemplate.commons.exception.http;

import com.gitee.feizns.webtemplate.commons.exception.service.ServiceException;
import org.springframework.http.HttpStatus;

/**
 * @author feizns
 * @since 2019/5/13
 */
public class HttpException extends ServiceException {

    /**
     * 响应状态
     */
    private HttpStatus status;

    public HttpException(String message, HttpStatus status) {
        super(message);
        this.status = status;
    }

    public HttpStatus getStatus() {
        return status;
    }

}
